/**
 * Copyright (c) 2013-Now http://jeesite.com All rights reserved.
 * No deletion without permission, or be held responsible to law.
 * @author lzw
 */
import { defHttp } from '/@/utils/http/axios';
import { useGlobSetting } from '/@/hooks/setting';
import { BasicModel, Page } from '../model/baseModel';

const { adminPath } = useGlobSetting();

export interface FtdsIdCardTools extends BasicModel<FtdsIdCardTools> {
  workName?: string; // 任务名称
  number?: number; // 任务数量
  scResult?: string; // 生成结果
}

export const ftdsIdCardToolsList = (params?: FtdsIdCardTools | any) =>
  defHttp.get<FtdsIdCardTools>({ url: adminPath + '/operating/ftdsIdCardTools/list', params });

export const ftdsIdCardToolsListData = (params?: FtdsIdCardTools | any) =>
  defHttp.post<Page<FtdsIdCardTools>>({
    url: adminPath + '/operating/ftdsIdCardTools/listData',
    params,
  });

export const ftdsIdCardToolsForm = (params?: FtdsIdCardTools | any) =>
  defHttp.get<FtdsIdCardTools>({ url: adminPath + '/operating/ftdsIdCardTools/form', params });

export const ftdsIdCardToolsSave = (params?: any, data?: FtdsIdCardTools | any) =>
  defHttp.postJson<FtdsIdCardTools>({
    url: adminPath + '/operating/ftdsIdCardTools/save',
    params,
    data,
  });

export const ftdsIdCardToolsDisable = (params?: FtdsIdCardTools | any) =>
  defHttp.get<FtdsIdCardTools>({ url: adminPath + '/operating/ftdsIdCardTools/disable', params });

export const ftdsIdCardToolsEnable = (params?: FtdsIdCardTools | any) =>
  defHttp.get<FtdsIdCardTools>({ url: adminPath + '/operating/ftdsIdCardTools/enable', params });

export const ftdsIdCardToolsDelete = (params?: FtdsIdCardTools | any) =>
  defHttp.get<FtdsIdCardTools>({ url: adminPath + '/operating/ftdsIdCardTools/shibie', params });
